<template>
  <div class="card content-box">
    <div v-html="nativePageContent"></div>
  </div>
</template>

<script setup lang="ts" name="basicForm">
import { ElMessage, FormInstance, FormRules, ElMessageBox } from "element-plus";
import { ref, reactive, onMounted, onBeforeUnmount } from "vue";
import { getjggl, emailtest, emailtestexchange, testSMSAccount, getjgglmessage, mergeCompany } from "@/api/modules/jggl";
import { OrgManager } from "@/api/interface";
import { isTelOrFax, isEmail } from "@/utils/eleValidate";
import moreSelectUser from "@/views/tools/moreUserSelect/index.vue";
import { CirclePlus, Delete, EditPen, View, Search, User } from "@element-plus/icons-vue";
import { getActivityCoordinates } from "@/api/modules/workflow";

import { vaildateUserByLoginName, addNotices, findByFileNameNew, editNotice } from "@/api/modules/systemTools";
import TreeFilter from "@/components/TreeFilter/index.vue";
import { getUserDepartment } from "@/api/modules/jggl";
import { useRoute, useRouter } from "vue-router";
import { useTabsStore } from "@/stores/modules/tabs";
const router = useRouter();
const route = useRoute();
const tabStore = useTabsStore();
const treeFilterData = ref<any>([]);

const nativePageContent = ref("");
onMounted(() => {
  console.log(route);
  //加载信息
  let query = JSON.parse(JSON.stringify(route.query));

  getActivityCoordinates(query.id).then(res => {
    let tmp = res.toString();
    nativePageContent.value = tmp.replaceAll("jbpm!getProcessImage.action", "api/jbpm!getProcessImage.action");
  });
});

interface TreeNode {
  value: any;
  lable: any;
  children?: TreeNode[];
  id: string;
  name: string;
  attr: any;
  data: any;
}

function traverseTree(node: TreeNode, callback: (node: TreeNode) => void) {
  callback(node);
  if (node.children) {
    node.children.forEach(child => traverseTree(child, callback));
  }
}
</script>

<style scoped lang="scss">
@import "./index.scss";
.item {
  width: 800px;
}
</style>
